package com.gameproject.alltogether;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.SweepGradient;

public class LineWall extends SpriteObject{
	
	private int initX;
	private int initY;
	private int endX;
	private int endY;
	private Paint paint;
	
	public int getInitX() {
		return initX;
	}
	
	public void setInitX(int initX) {
		this.initX = initX;
	}
	
	public int getInitY() {
		return initY;
	}
	
	public void setInitY(int initY) {
		this.initY = initY;
	}
	
	public int getEndX() {
		return endX;
	}
	
	public void setEndX(int endX) {
		this.endX = endX;
	}
	
	public int getEndY() {
		return endY;
	}
	
	public void setEndY(int endY) {
		this.endY = endY;
	}
	
	public LineWall(int initX, int initY, int endX, int endY) {
		super(null, 0, 0, 0);
		this.initX = initX;
		this.initY = initY;
		this.endX = endX;
		this.endY = endY;
		paint = new Paint();
		paint.setStrokeWidth(5);
		paint.setColor(Color.GRAY);
		paint.setShadowLayer(4, 3, 3, Color.BLACK);
	}
	
	@Override
	public void draw(Canvas canvas){
		canvas.drawLine(initX, initY, endX, endY, paint);
	}
	
}
